program ArtesMarciais;

uses
  Vcl.Forms,
  DataAccess.DataModule in 'dataAccess\DataAccess.DataModule.pas' {Dm: TDataModule},
  Forms.MainForm in 'forms\Forms.MainForm.pas' {MainForm},
  Forms.LoginForm in 'forms\Forms.LoginForm.pas' {LoginForm},
  Forms.CustomSimpleForm in 'forms\Forms.CustomSimpleForm.pas' {CustomSimpleForm},
  Forms.CustomCadForm in 'forms\Forms.CustomCadForm.pas' {CustomCadForm},
  Controllers.UsuarioController in 'controllers\Controllers.UsuarioController.pas',
  Models.CustomModel in 'models\Models.CustomModel.pas',
  Models.Usuario in 'models\Models.Usuario.pas',
  Models.Acesso in 'models\Models.Acesso.pas',
  Controllers.MainFormActionController in 'controllers\Controllers.MainFormActionController.pas' {MainFormActionController: TDataModule},
  Controllers.SessionController in 'controllers\Controllers.SessionController.pas',
  DataAccess.UsuarioDAO in 'dataAccess\DataAccess.UsuarioDAO.pas',
  Controllers.AcessoController in 'controllers\Controllers.AcessoController.pas',
  DataAccess.AcessoDAO in 'dataAccess\DataAccess.AcessoDAO.pas',
  Interfaces.IAcessoContract in 'interfaces\Interfaces.IAcessoContract.pas';

{$R *.res}

begin
  Application.Initialize;
  if TLoginForm.ValidarAcesso then
  begin
  Application.CreateForm(TDm, Dm);
  Application.CreateForm(TMainForm, MainForm);
  end;
  Application.Run;
end.
